package com.stylefeng.guns.modular.product.model;

import java.io.Serializable;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author stylefeng123
 * @since 2019-03-15
 */
@Data
@TableName("sys_forward")
public class Forward extends Model<Forward> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Excel(name = "Deals Number")
    @TableField("deal_no")
    private String dealNo;

    @Excel(name = "Value Date", format = "yyyy/MM/dd")
    @TableField("value_date")
    private Date valueDate;

    @Excel(name = "Ccy Pair")
    @TableField("ccy_pair")
    private String ccyPair;

    @Excel(name = "Ccy Pair")
    @TableField("ccy_pair_ticket")
    private String ccyPairTicket;

    @Excel(name = "Ccy Ticket")
    @TableField("ccy_ticket")
    private String ccyTicket;

    @Excel(name = "Buy/Sell")
    @TableField("buy_sell")
    private String buySell;

    @Excel(name = "Notional")
    private String notional;

    @Excel(name = "Strike")
    private String strike;

    @Excel(name = "Market Rate")
    @TableField("market_rate")
    private String marketRate;

    @Excel(name = "Swap Point")
    @TableField("swap_point")
    private String swapPoint;

    @Excel(name = "Spot Ref")
    @TableField("spot_ref")
    private String spotRef;

    @Excel(name = "MTM (Ccy2)")
    @TableField("mtm_ccy")
    private String mtmCcy;

    @Excel(name = "MTM in USD")
    @TableField("mtm_usd")
    private String mtmUsd;

    @Excel(name = "Delta %")
    private String delta;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
